package com.gimi.cloud.jimi.dto.user;

import com.gimi.cloud.jimi.dto.base.BaseDTO;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 数据传输类
 */
public class UserDTO extends BaseDTO {
	
	private static final long serialVersionUID = 1L;

    /** 用户ID*/
    @NotNull(groups = {ModifyPwd.class,ModifyPasswordByPwdCode.class},message = "用户ID不能为空")
    private Integer userId;
    /** 用户名*/
    private String userName;
    /** 用户密码*/
    @NotBlank(groups = {DoLoginByPassword.class,InitPwd.class},message = "密码不能为空")
    private String pwd;
    /** 支付密码*/
    private String payPwd;
    /** 电话号码*/
    @NotBlank(groups = {DoLoginByPassword.class,DoLoginByPwdCode.class,ModifyPwd.class,InitPwd.class,CheckModifyPassword.class,ModifyPasswordByPwdCode.class},message = "账号不能为空")
    private String mobilePhone;
    /** 手机设备类型(1安卓,2IOS)*/
    private Integer deviceType;
    /** 设备型号*/
    private String uniqueVersion;
    /** 设备唯一码*/
    private String uniqueInformation;
    /** app版本号*/
    private String appVersion;
    /** 验证码*/
    @NotBlank(groups = {DoLoginByPwdCode.class,CheckModifyPassword.class},message = "验证码不能为空")
    private String code;
    /** 原密码*/
    @NotBlank(groups = {ModifyPwd.class},message = "原密码不能为空")
    private String oldPwd;
    /** 新密码*/
    @NotBlank(groups = {ModifyPwd.class,ModifyPasswordByPwdCode.class},message = "新密码不能为空")
    private String newPwd;
    
    private Integer page;
    

    public interface DoLoginByPassword{}
    public interface DoLoginByPwdCode{}
    public interface ModifyPwd{}
    public interface InitPwd{}
    public interface CheckModifyPassword{}
    public interface ModifyPasswordByPwdCode{}

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPayPwd() {
        return payPwd;
    }

    public void setPayPwd(String payPwd) {
        this.payPwd = payPwd;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public String getUniqueVersion() {
        return uniqueVersion;
    }

    public void setUniqueVersion(String uniqueVersion) {
        this.uniqueVersion = uniqueVersion;
    }

    public String getUniqueInformation() {
        return uniqueInformation;
    }

    public void setUniqueInformation(String uniqueInformation) {
        this.uniqueInformation = uniqueInformation;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getOldPwd() {
        return oldPwd;
    }

    public void setOldPwd(String oldPwd) {
        this.oldPwd = oldPwd;
    }

    public String getNewPwd() {
        return newPwd;
    }

    public void setNewPwd(String newPwd) {
        this.newPwd = newPwd;
    }

    public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}
    
}
